{config_load file="index.conf"}
{include file="inc/doctype.tpl"}

<head>
    <title>Edit</title>
    {include file="inc/include.tpl"}
</head>

<body>

{include file="inc/logo.tpl"}
{include file="inc/global_menu.tpl"}

<div><strong>{$error.empty}</strong></div>
<form action="" method="post">
    Username:<div></div>
    <input type="text" name="data[user_login]" value="{$data.user_login|escape}" readonly="readonly" /><br />
    E-mail:<div><strong>{$error.mail}</strong></div>
    <input type="text" name="data[user_mail]" value="{$data.user_mail|escape}" /><br />
    Gender:<div></div>
    <select name="data[user_sex]">
        <option value="" />Your gender
        <option value="male" {if $data.user_sex == 'male'}selected{/if} />Male
        <option value="female" {if $data.user_sex == 'female'}selected{/if} />Female
    </select><br />
    Age:<div><strong>{$error.born}</strong></div>
    {html_select_date selected_month="$month" selected_year="$year" selected_day="$day" start_year="-60" end_year="-8"}<br />
    Phone number:<div></div>
    <input type="text" name="data[user_number]" value="{$data.user_number|escape}" readonly="readonly" /><br />
    Country/region:<div></div>
    <input type="text" name="data[user_country]" value="{$data.user_country|escape}" /><br />
    City/other country:<div></div>
    <input type="text" name="data[user_city]" value="{$data.user_city|escape}" /><br />
    About yourself:<div></div>
    <input type="text" name="data[user_description]" value="{$data.user_description|escape}" /><br />
    <input type="submit" value="change" />
</form>

<div><strong>{$error.password_empty}</strong></div>
<div><strong>{$result}</strong></div>
<form action="" method="post">
	Old password:<div><strong>{$error.old_password}</strong></div>
	<input type="password" name="data[old_password]" value="" /><br />
	Password:<div><strong>{$error.password}</strong></div>
	<input type="password" name="data[password]" value="" /><br />
	Password again:<div></div>
	<input type="password" name="data[password_again]" value="" /><br />
	<input type="submit" name="password" value="change password" />
</form>

{include file="profile/inc/return.tpl"}

</body>

</html>  